home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 September / CHIP 1996 szeptember (CD07).zip / CHIP_CD07.ISO / sac / pack / pklts201.exe / PKLITE.TXT < prev    next >
Text File  |  1996-03-15  |  47KB  |  1,205 lines

  1.  
  2.                         --------------------------------------------
  3.                             PKLITE(R) AND PKLITE PROFESSIONAL(R)
  4.                                    *SHAREWARE USER MANUAL*  
  5.                         --------------------------------------------
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. *** PLEASE NOTE ***
  20. This is a condensed version of the manual provided with the registered
  21. version of PKLITE.  Some sections may have been condensed or omitted in
  22. this shareware version.
  23.  
  24.  
  25.  
  26. Copyright 1990-1992,1995,1996 PKWARE Inc. All Rights Reserved.
  27.  
  28. U.S. Patent No. 5,051,745
  29.  
  30. No part of this publication may be reproduced, transmitted,
  31. transcribed, stored in a retrieval system, or translated into any other
  32. language or computer language in whole or in part, in any form or
  33. by any means, whether it be electronic, mechanical, magnetic,
  34. optical, manual or otherwise, without prior written consent of PKWARE, Inc.
  35.  
  36. PKWARE, INC. DISCLAIMS ALL WARRANTIES AS TO THIS SOFTWARE, WHETHER EXPRESS
  37. OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF
  38. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, FUNCTIONALITY, DATA
  39. INTEGRITY OR PROTECTION.
  40.  
  41.  
  42. PKWARE, the PKWARE logo, PKZIP, PKLITE and PKLITE Professional are
  43. registered trademarks of PKWARE, Inc.
  44.  
  45.  
  46. Trademarks of other companies mentioned in this documentation appear for
  47. identification purposes only and are the property of their respective
  48. companies.
  49.  
  50. Portions of this software were obtained from BRM Technologies Ltd. and
  51. are protected by the following copyright: Copyright 1993-1996 BRM
  52. Technologies Ltd.  All Rights Reserved.  Used with permission.
  53.  
  54.  
  55.  
  56. CHAPTER ONE: WELCOME TO PKLITE
  57.  
  58.  
  59.  
  60. PKLITE and PKLITE Professional are easy-to-use file compression 
  61. programs used to compress DOS and Windows executable files. Both 
  62. programs increase valuable disk space by compressing executables by an 
  63. average of 45%. It might also reduce that start-up time of many programs 
  64. because of reduced drive access time. 
  65.  
  66. PKLITE Professional allows you to compress your files even more to make 
  67. your executables smaller yet. It also contains several more options that add 
  68. even more flexibility to your data compression. Perhaps the most valuable 
  69. feature, however, is that PKLITE Professional protects your executables 
  70. against reverse engineering. If you use the extra compression option, you 
  71. can't even expand the file using PKLITE Professional.
  72.  
  73. PKLITE and PKLITE Professional compress the following executables:
  74.  
  75.    For Windows: .EXE, .DLL, and .DRV files.
  76.  
  77.    For DOS: .EXE, .COM, .DRV, and .SYS files.
  78.  
  79.  
  80.  
  81. OPERATING SYSTEM AND MEMORY REQUIREMENTS
  82.  
  83. PKLITE runs on any computer that uses DOS Version 2.1 or greater. Running 
  84. a program that has been compressed by PKLITE might require up to 84K of 
  85. extra memory overhead to expand the application in memory. 
  86.  
  87.  
  88. HOW DOES PKLITE COMPRESSION WORK?
  89.  
  90. PKLITE compresses your files like PKZIP, but it also adds a small amount of 
  91. extraction code at the beginning of each executable file. When you run an 
  92. application that has been compressed by PKLITE, the program automatically 
  93. expands into memory and runs. The compression process does not change 
  94. the operation of the program; it merely reduces the disk space required to 
  95. store the program. PKLITE can also expand your files back to their original 
  96. size (DOS only).
  97.  
  98. PKLITE contains several options that add flexibility to your compression. 
  99. Refer to the Using PKLITE Options section in the Using PKLITE chapter of 
  100. this manual.
  101.  
  102. CAUTION:    Do not use PKLITE on original program diskettes. You 
  103. should always make a copy of the original diskettes that are 
  104. supplied with an application. Work only from your copies. 
  105. Keep the original diskettes in a safe place.
  106.  
  107.  
  108.  
  109. PKLITE AND PKLITE PROFESSIONAL: WHAT'S DIFFERENT?
  110.  
  111. PKLITE and PKLITE Professional perform the same basic task: compression 
  112. of Windows and DOS executable files. However, PKLITE Professional is 
  113. more powerful in that it features an "extra compression" option that allows you 
  114. to make your executables even smaller. PKLITE Professional also protects 
  115. your files against reverse engineering by making the extra-compressed files 
  116. "unexpandable." PKLITE Professional also allows you to leave 
  117. uncompressed data in a compressed file (for example, internal overlays).
  118.  
  119. Refer to the Using PKLITE Options section of the Using PKLITE chapter 
  120. for more information on PKLITE and PKLITE Professional options.
  121.  
  122.  
  123.  
  124. PROGRAMS YOU SHOULD NOT COMPRESS WITH PKLITE
  125.  
  126. PKLITE can compress most executable files. However, some application 
  127. cannot be compressed, or do not run correctly when compressed. For 
  128. example, some programs require that the overlay data in the executable file 
  129. be located at a specified area in the executable. Such programs will not run 
  130. properly when compressed. Executables that merely append overlay data to 
  131. the end of the file "can" run properly when compressed.
  132.  
  133.  
  134.  
  135. USING PKWARE TECHNICAL SUPPORT
  136.  
  137. We hope that using PKLITE is as enjoyable and trouble-free as possible. Our 
  138. goal is to provide you with the best product and documentation possible. 
  139. However, problems and questions might arise. In most cases, you'll be able 
  140. to answer those questions or solve the problems by using this manual. But 
  141. when you need further assistance, you can reach the PKWARE Technical 
  142. Support Department in the following ways:
  143.  
  144.      *   CompuServe.
  145.  
  146.      *   PKWARE BBS Bulletin Board Service (BBS).
  147.  
  148.      *   Internet/Usenet.
  149.  
  150.      *   Calling/Faxing a Technical Support Representative.
  151.  
  152. Remember, always refer to this manual before you use one of these options.
  153.  
  154.  
  155.  
  156. PREPARING TO USE TECHNICAL SUPPORT
  157.  
  158. The more information you provide, the easier it will be for PKWARE Technical 
  159. Support Representatives to help you. Before you use one of the technical 
  160. support services, please have the following information handy:
  161.  
  162.      *   The version number of PKLITE.
  163.  
  164.      *   The "exact" commands you typed into your computer prior to noticing 
  165.          the problem and any error messages that appeared on your screen.
  166.  
  167.          Note:  Be prepared to FAX a copy of the error messages. 
  168.  
  169. To help you organize this information, use the Customer Support Form at the 
  170. end of this chapter.
  171.  
  172.  
  173.  
  174. USING SUPPORT CONFERENCES
  175.  
  176. PKWARE maintains support conferences on several Bulletin Board Service 
  177. (BBS) networks. These include ILink, SmartNet, and Rime. You may leave a 
  178. question in the PKWARE support conference using any of these networks 
  179. and a support representative or fellow PKLITE user will provide an answer. 
  180. Several other BBS networks also offer PKWARE product conferences, but 
  181. those are not necessarily monitored by PKWARE.
  182.  
  183.  
  184. USING THE PKWARE BBS
  185.  
  186. PKWARE maintains its own BBS. It is normally available 24 hours a day and 
  187. it supports all baud rates from 1200 to 28.8k. 
  188.  
  189. To use this BBS, set your communications software to the following:
  190.  
  191.    8 bits
  192.  
  193.    1 stop bit
  194.  
  195.    no parity
  196.  
  197. For your convenience, the PKWARE BBS has multiple phone lines, offers the 
  198. latest in PKWARE shareware, and allows you to download many other files.
  199.  
  200. You can reach the PKWARE BBS at the following number:
  201.  
  202.    (414) 354-8670
  203.  
  204.  
  205.  
  206. USING AMERICA ONLINE
  207.  
  208. PKWARE has a support service on America Online (AOL). By using the 
  209. PKWARE keyword, you can access frequently-asked questions, download 
  210. related files, and leave questions on our message board.
  211.  
  212. Our AOL mailing address is:
  213.  
  214.    pkwaresup@aol.com
  215.  
  216.  
  217.  
  218. USING COMPUSERVE
  219.  
  220. PKWARE technical support representatives maintain a discussion forum on 
  221. CompuServe. To reach the forum, type GO PKWARE from any 
  222. CompuServe prompt. The PKWARE discussion forum is located in area 11.
  223.  
  224.  
  225.  
  226. USING INTERNET/USENET
  227.  
  228. PKWARE products are frequently discussed in the newsgroup 
  229. comp.compression. Use the Internet/Usenet to electronically mail PKWARE 
  230. Technical Support.
  231.  
  232. The Internet/Usenet address is:
  233.  
  234.    support@pkware.com
  235.  
  236. You can also contact PKWARE Technical Support through our World Wide 
  237. Web site at the following address:
  238.  
  239.    www.pkware.com
  240.  
  241.  
  242.  
  243. CALING A PKWARE TECHNICAL SUPPORT REPRESENTATIVE
  244.  
  245. The most direct way to receive assistance about PKLITE is to call a PKWARE 
  246. Technical Support Representative on the phone. The PKWARE Technical 
  247. Support Department is available Monday through Friday from 9:00a.m. to 
  248. 5:00p.m. Central Time.
  249.  
  250. Before you call, you should FAX the necessary information. This gives the 
  251. technical support representative some time to review your problem and offer 
  252. a solution. Please indicate on the FAX that you will be calling.
  253.  
  254. The PKWARE FAX number is:
  255.  
  256.    (414) 354-8559
  257.  
  258. If you have determined that your problem is serious and needs immediate 
  259. attention, feel free to call the PKWARE Technical Support Department at the 
  260. following number:
  261.  
  262.    (414) 354-8699
  263.  
  264.  
  265.  
  266. USING THE PKWARE CUSTOMER SUPPORT FORM
  267.  
  268. For your convenience, a Customer Support Form has been provided to help 
  269. you record the information you need to accurately report the problem you are 
  270. experiencing. We recommend that you make several copies of this form. 
  271. REMEMBER! Include as much information as possible.
  272.  
  273. The Customer Support Form appears below:
  274.  
  275. Customer Support Form
  276.  
  277. Customer Information
  278.  
  279. Your Name:
  280.  
  281. Company Name:
  282.  
  283. Voice/FAX Phone Numbers:
  284.  
  285. Address, City, State:
  286.  
  287. ZIP code and County:
  288.  
  289. Email ID (any):
  290.  
  291. System Configuration Information
  292.  
  293. Software Version:
  294.  
  295. Computer Model/Make:
  296.  
  297. DOS Version:
  298.  
  299. Windows Version:
  300.  
  301. Drive Model/Vendor:
  302.  
  303. Information
  304.  
  305. Command you typed:
  306.  
  307. Error message displayed: 
  308.  
  309.  
  310. -------------------------------------------------------------------------
  311.  
  312.  
  313.  
  314. CHAPTER TWO: USING PKLITE
  315.  
  316.  
  317.  
  318. PKLITE is a command-line program, which means you type everything at a 
  319. DOS command prompt. This gives you flexibility because you can specify 
  320. drives and directory paths, for example, if you want to move a newly-
  321. compressed executable or rename the executable. The DOS command line 
  322. allows you to do everything in one command.
  323.  
  324. PKLITE and PKLITE Professional also provide "options" that add further 
  325. flexibility to your compression. For example, you can make PKLITE 
  326. Professional do "extra" compression, saving you more disk space and 
  327. increasing the speed of the executable when you run it.
  328.  
  329.  
  330.  
  331. USING HELP
  332.  
  333. To get quick, on-line help on using PKLITE, type the following at your 
  334. command prompt:
  335.  
  336.      pklite 
  337.  
  338. The help screen appears. Follow the instructions on this screen to use Help.
  339.  
  340.  
  341.  
  342.  
  343. LEARNING PKLITE
  344.  
  345. To use PKLITE, you have to type pklite and the name of the executable file 
  346. you want to compress. For example, if you want to compress a file called 
  347. light.exe, you would type the following:
  348.  
  349.      pklite  light.exe
  350.  
  351. This is the most basic PKLITE command. Those two items are always 
  352. required when you use PKLITE. You can also include other information in 
  353. your command that adds flexibility to your compression needs. For example, 
  354. you can specify the location of the original file, or a new location for the newly 
  355. compressed file. You can also include options that change the complexion of 
  356. your compression (for example, the -b option creates a backup copy of the 
  357. original executable).
  358.  
  359. Refer to the next section, The pklite Command, which reviews all of the 
  360. possible items you can type on the command line. The remaining sections 
  361. detail the individual items themselves.
  362.  
  363.  
  364.  
  365.  
  366. THE pklite COMMAND
  367.  
  368. The general format for using the pklite command is:
  369.  
  370. pklite  [option(s)]   [drive:][path]infile  [[drive:][path]outfile]
  371.  
  372. A description of each item appears below: 
  373.  
  374. This item:                         Represents:
  375. -----------------------------------------------
  376.  
  377. pklite                              The PKWARE executable compression program.
  378.  
  379. option(s)                           One or more options - each one represented by a 
  380.                                     single letter -  you can use to add flexibility to your 
  381.                                     compression (for example, the "e" option allows 
  382.                                     PKLITE Professional to compress your executable 
  383.                                     even smaller than the normal compression).
  384.                                     Refer to Using PKLITE Options for more 
  385.                                     information.
  386.  
  387. [drive:] [path]infile               The current location of the executable you are 
  388.                                     compressing, and the name of that executable.
  389.  
  390.                                     Refer to Specifying Locations and Changing 
  391.                                     Names for more information.
  392.  
  393.  
  394. [drive:] [path]outfile              The location at which you want the newly-com-
  395.                                     pressed executable to go, and the new name you 
  396.                                     want to give it.
  397.  
  398.                                     Refer to Specifying Locations and Changing 
  399.                                     Names for more information.
  400.  
  401.  
  402. The items in brackets ([ ]) are optional. Only the pklite program name and the 
  403. name of the executable file is required. Therefore, the simplest command you 
  404. can type contains the following format:
  405.  
  406.      pklite  filename
  407.  
  408. The filename is the name of the executable file you want to compress. For 
  409. example, if want to compress the file called LIGHT.EXE, you would type the 
  410. following:
  411.  
  412.      pklite  light.exe
  413.   
  414.      Note:   If you do not type the filename extension (for example, .EXE, .SYS, 
  415.              .DRV, .COM, .or DLL), PKLITE automatically compresses files with 
  416.              that particular name and that have the appropriate extension.
  417.  
  418.  
  419.  
  420.  
  421. USING PKLITE OPTIONS
  422.  
  423. PKLITE contains several options that add flexibility to your compression. 
  424. Each option is represented by a single letter that you type right in your pklite 
  425. command and should be preceded by a dash (-) or a forward slash (/). For 
  426. example, the -e option adds extra compression to the normal amount of 
  427. compression. If you are compressing a file called LIGHT.EXE and you want 
  428. extra compression, you would type the following:
  429.  
  430. pklite  -e  light.exe
  431.  
  432. When you use an option, it must be the first item you type after the pklite 
  433. command.
  434.  
  435. The following table contains a list of available options. 
  436.  
  437. This option:             Does the following:
  438. ---------------------------------------------
  439.  
  440. -a                       Compresses files with overlays, optimizes 
  441.                          relocations, windows resources, unpack 
  442.                          EXEPACK files, and compress Windows 3.0 
  443.                          files.
  444.  
  445. -b                       Creates a backup .BAK file of the original.
  446.  
  447. -c                       Adds checksum for validation load image 
  448. (DOS .EXE's only).
  449.  
  450. -d                       Skips developer-defined resources when 
  451.                          compressing.
  452.  
  453. -e                       Performs extra compression and makes the 
  454.                          compressed file unextractable (PKLITE Pro-
  455.                          fessional only).
  456.  
  457. -e-  (DOS only)          Performs extra compression without a PSP 
  458.                          signature
  459.  
  460. -f                       Forces a file to compress, even when the file 
  461.                          size increases.
  462.  
  463. -g  (DOS only)           Leaves uncompressed data in the executable.
  464.  
  465. -k                       Compress only Windows resources.                     
  466.  
  467. -l                       Displays software license screen.
  468.  
  469. -n                       Never compresses files with overlays or win-
  470.                          dows resources, nor optimizes locations. Also 
  471.                          never compresses Windows 3.0 files.
  472.  
  473. -o                       Overwrites output file, if it exists.
  474.  
  475. -p  (DOS only)           Doesn't unpack files that were compressed 
  476.                          with EXEPACK before compressing.
  477.  
  478. -r  (DOS only)           Removes overlay data.
  479.  
  480. -u                       Updates files time and date to the current time 
  481.                          and date.
  482.  
  483. -w                       Compress only Windows 3.0 files.
  484.  
  485. -x  (DOS only)           Expands a compressed file.
  486.  
  487. -s  followed by a        Use that file as the stub or header for the 
  488. filename                 newly-compressed file.
  489.  
  490. This option is available 
  491. only for Windows 
  492. executables.
  493.  
  494.  
  495. Further information on each option appears below.
  496.  
  497.  
  498. THE -a OPTION - COMPRESS WITH OVERLAYS, RESOURCES, AND WINDOWS 3.0 
  499. FILES
  500.  
  501. To compress files with overlays, Windows resources, and Windows 3.0 files 
  502. use the -a option.
  503.  
  504.  
  505. OVERLAYS
  506.  
  507. Programs that use overlays loaded from .EXE files may not run normally 
  508. when in compressed form. PKLITE detects whether or not a program file 
  509. contains internal overlays.
  510.  
  511. Note:  PKLITE does not compress overlay data, however, the load image 
  512.        data located before the overlay data is compressed. Some programs 
  513.        require that the overlay data in the .EXE file be located at a specified 
  514.        location in the .EXE file. These programs will not run correctly when 
  515.        compressed with PKLITE. You can use the -x option to return these 
  516.        programs to their original size.
  517.  
  518. PKLITE also optimizes Windows relocations and unpacks files 
  519. packed using EXEPACK. Examples of Windows resources are 
  520. bitmaps, icons, and dialog boxes.
  521.  
  522. When you use the -a option to compress executables that contain overlays, 
  523. PKLITE automatically compresses those files.
  524.  
  525. If you don't use the -a option when you are compressing overlays, PKLITE 
  526. allows you to confirm whether or not you want to compress. For example, if 
  527. the file you want to compress is called LIGHT.EXE you would type the 
  528. following:
  529.  
  530.      pklite  light.exe
  531.  
  532. The following prompt appears:
  533.  
  534.      LIGHT.EXE may contain overlays.  Compress (y/n)?
  535.  
  536. To compress the file, type Y.
  537.  
  538. To cancel compression, type N. The file is not compressed and the DOS 
  539. prompt appears.
  540.  
  541.  
  542.  
  543. WINDOWS 3.0 FILES
  544.  
  545. When PKLITE compresses Windows 3.0 files, those files automatically 
  546. become Windows 3.1 files. When PKLITE encounters a Windows 3.0 file, it 
  547. reminds you that it is a WIndows 3.0 file and prompts you before it 
  548. compresses. For example, if you compress a Windows 3.0 executable file 
  549. called HEARTS.EXE, PKLITE would display the following prompt:
  550.  
  551.      File HEARTS.EXE is a Windows 3.0 file. Compress (y/n)?
  552.  
  553. To compress the file, type y. The file begins to compress. When it is finished, 
  554. that file becomes a Windows 3.1 file.
  555.  
  556. To "not" compress the file, type n. The file is not compressed.
  557.  
  558. The -b Option - Creating a Backup of Executable File
  559.  
  560. To create a backup copy of the executable file you are compressing, use the 
  561. -b option. The backup copy contains a .BAK extension. For example, if the file 
  562. you are compressing is called LIGHT.EXE, you would type the following:
  563.  
  564.      pklite  -b  light.exe
  565.  
  566. A backup copy of the file will be created. In this example, the file would be 
  567. called LIGHT.BAK. If the original file was in a directory called GAMES, 
  568. PKLITE would put LIGHT.BAK into the GAMES directory.
  569.  
  570. Note:   If the current working directory contains a .BAK file with the same 
  571.         name, PKLITE will overwrite that file.
  572.  
  573.  
  574.  
  575. THE -c OPTION - ADD CHECKSUM FOR VALIDATION LOAD IMAGE
  576.  
  577. This option is available only with DOS executables.
  578.  
  579. To add a checksum to the header of the executable file, use the -c option. If 
  580. you modify the executable after you add the checksum, PKLITE displays a 
  581. checksum error.
  582.  
  583.  
  584.  
  585. THE -d OPTION - DON'T COMPRESS DEVELOPER-DEFINED RESOURCS
  586.  
  587. If you don't want to compress resources that have been created by individual 
  588. developers, use the -d option.
  589.  
  590. This option applies only to resources that were created by developers who 
  591. wrote their own Windows resources. These resources can differ greatly from 
  592. resources such as dialog boxes or icons. (Developer-defined resources may 
  593. not use the Windows resource loader.)
  594.  
  595.  
  596.  
  597. THE -e OPTION - USING EXTRA COMPRESSION
  598.  
  599. This option is available only for the Professional version of PKLITE.
  600.  
  601. With the Professional version of PKLITE, you can add extra compression to 
  602. your executables by using the -e option. It also adds Program Segment Prefix 
  603. (PSP). This option allows PKLITE to compress your files even smaller than 
  604. the normal PKLITE compression method. For example, if the file you are 
  605. compressing is called light.exe, you would type the following:
  606.  
  607.      pklite  -e  light.exe
  608.  
  609. When you use the -e option on an executable, you "cannot" expand that file 
  610. using the PKLITE -x option. If you want to be able to expand your executable 
  611. to its original size using PKLITE, do not use this extra compression method.
  612.  
  613. The PSP signature is stored in the first file control block of the PSP, which is 
  614. at offset 5C in the PSP. The executable program can check for this signature 
  615. and abort if it doesn't find the signature. This assures that your executable 
  616. program will not run if the PKLITE Professional compression is removed. The 
  617. check would look something like the following:
  618.  
  619.      if (* (unsigned short int far  *)MK_FP(_psp, 0x5C)  != )x4B50)
  620.  
  621.  
  622.  
  623.  
  624. THE -e- OPTION - USE EXTRA COMPRESSION WITHOUT PSP
  625.  
  626. This option is available only for the Professional version of PKLITE, and can 
  627. be used only with DOS executables.
  628.  
  629. With the Professional version of PKLITE, you can add extra compression - 
  630. "without" PSP signature -  to your executables by using the -e- option. This 
  631. option works the same as the -e option, except that it does not include the 
  632. PSP signature. Like the -e option, you cannot expand the executable to its 
  633. original size using the PKLITE -x option.
  634.  
  635.  
  636.  
  637. THE -f OPTION - FORCE FILE TO COMPRESS
  638.  
  639. This option is available only for the Professional version of PKLITE.
  640.  
  641. Some executables, especially smaller ones, might not become smaller using 
  642. PKLITE - simply because there isn't much data in them to begin with and the 
  643. overlying PKLITE code that is inserted into them actually adds space. In 
  644. these instances, although you might not achieve the compression you want, 
  645. PKLITE can still compress the data as it normally would. To achieve this 
  646. compression, use the -f option. 
  647.  
  648.  
  649.  
  650. THE -g OPTION - LEAVE UNCOMPRESSED AREA IN FILE
  651.  
  652. This option is available only for the Professional version of PKLITE, and can 
  653. be used only with DOS executables.
  654.  
  655. Some data in your executables can be marked by "signatures" that signifies 
  656. that it is not to be compressed. With the -g option, you can have PKLITE 
  657. leave this "uncompressed" data in the otherwise compressed executable. 
  658. PKLITE scans the signature for the following:
  659.  
  660.    PKLITE\x26\xA3[length byte]
  661.  
  662. where [length byte] is a length, in bytes, of data to follow that should not be 
  663. compressed. This allows you to designate explicit areas of the program that 
  664. must not be compressed by PKLITE.
  665.  
  666.  
  667.  
  668. THE -k OPTION - COMPRESS ONLY WINDOWS RESOURCES 
  669.  
  670. To compress only Windows resources, use the -k option. 
  671.  
  672.  
  673.  
  674. THE -l OPTION - DISPLAY SOFTWARE LICENSE SCREEN
  675.  
  676. The -l option allows you to display the Software License Agreement 
  677. information. Because you are not compressing anything with this option, just 
  678. type the following:
  679.  
  680.      pklite  -l
  681.  
  682.  
  683. THE -n OPTION - NEVER COMPRESS FILES WITH OVERLAYS, RESOURCES, OR  
  684. WINDOWS 3.0 FILES
  685.  
  686. With this option, PKLITE will "not" compress executable files that contain 
  687. internal overlays, Windows resources, nor Windows 3.0 files. To compress 
  688. such files but do not want the overlay data in the newly-compressed 
  689. executable, use the -r option, which is described below.
  690.  
  691.  
  692.  
  693. THE -o OPTION - OVERWRITE OUPUT FILE
  694.  
  695. If you are specifying an output file (either by relocating or renaming a file), use 
  696. the -o option if you want PKLITE to overwrite a file that exists in the target 
  697. directory that has the same name. For example, if you are compressing a file 
  698. called light.exe and you want to rename the newly-compressed file to 
  699. LIGHT2.EXE, you would type something similar to the following:
  700.  
  701.      pklite  -0  light.exe  C:\light2.exe
  702.  
  703. If a file called light2.exe already exists in the C:\ directory, the new light2.exe 
  704. will overwrite that file.
  705.  
  706.  
  707.  
  708. THE -p OPTION - DON'T UNPACK FILES WITH EXEPACK
  709.  
  710. This option is available only with DOS executables.
  711.  
  712. With this option, PKLITE will not unpack files that were compressed by 
  713. EXEPACK.
  714.  
  715.  
  716.  
  717. THE -r OPTION - REMOVE OVERLAY DATA
  718.  
  719. This option is available only with DOS executables.
  720.  
  721. If your executables contain overlay data that you do not want in the resulting 
  722. compressed file, use the -r option. PKLITE will remove this uncompressed 
  723. data from the file.
  724.  
  725.  
  726.  
  727. THE -s OPTION - USE SPECIFIED FILENAME AS THE STUB
  728.  
  729. This option is available only for Windows executables.
  730.  
  731. When you compress a Windows executable, you might want to include the 
  732. "stub" or "header" of another file in your compressed executable file. For 
  733. example, if you want to insert the message that warns the user about running 
  734. a Windows executable from DOS window, you can grab that message (which 
  735. is part of the stub) from another Windows file.
  736.  
  737. To use this option, you must specify the Windows file from which you are 
  738. grabbing the stub after the -s option. So if you are compressing a file called 
  739. LIGHT.EXE and you want to use the "stub" from an executable called 
  740. install.exe, you would type the following:
  741.  
  742.      pklite  -sinstall.exe  light.exe
  743.  
  744. Do not put a space between the -s and the name of the stub file.
  745.  
  746.  
  747.  
  748. THE -u OPTION - UPDATING THE TIME AND DATE
  749.  
  750. To make the time and date of the executable file to be the current time and 
  751. date, use the -u option. 
  752.  
  753.  
  754.  
  755. THE -w OPTION - COMPRESS ONLY WINDOWS 3.0 FILES
  756.  
  757. To compress only Windows 3.0 files, use the -w option.
  758.  
  759.  
  760.  
  761. THE -x OPTION - EXPANDING A COMPRESSED FILE
  762.  
  763. This option is available only for DOS executables.
  764.  
  765. After you compress an executable with PKLITE, you can expand it back to its 
  766. original size using the -x option. For example, if you compressed the file 
  767. called light.exe and you decide that you don't want it compressed or you want 
  768. to make changes to it, type the following:
  769.  
  770.      pklite  -x  light.exe
  771.  
  772. Note:   You cannot use the -x option if you used the extra compression 
  773.         option, -e, to compress the files.
  774.  
  775.  
  776.  
  777.  
  778. SPECIFYING LOCATIONS AND CHANGING NAMES
  779.  
  780. When you compress an executable file, you might not be in the location in 
  781. which the file resides, or you might want to put the file in a different location. 
  782. PKLITE allows you to specify that information right in the pklite command. 
  783. With PKLITE, you can:
  784.  
  785. *   Specify the location - including drive and directory path - of the file if 
  786.     it's not in the current directory. For example:
  787.  
  788.         pklite  C:\temp\light.exe
  789.  
  790.     In this example, the file being compressed isn't on your current drive, 
  791.     so the command specifies the drive and full directory path in which 
  792.     the executable resides.
  793.  
  794. *   Change the name of the file. For example:
  795.  
  796.         pklite  C:\temp\light.exe  light2.exe
  797.  
  798.     In this example, the executable file in C:\TEMP is compressed and 
  799.     written to the current directory. The original file still remains in 
  800.     C:\TEMP.
  801.  
  802. *   Specify a new location, including drive and directory path.
  803.  
  804.         pklite  C:\temp\light.exe  C:\temp\paper\light2.exe
  805.  
  806.     In this example, the command puts the compressed executable file 
  807.     in a different location "and" renames it.
  808.  
  809.     Note:  You cannot use wildcards for output files. For example, you cannot 
  810.            type:
  811.  
  812.         pklite  C:\temp\light.exe  C:\temp\paper\light2*
  813.  
  814.     In general, follow the rules for DOS for typing directory names, drive 
  815.     names, and so on. 
  816.  
  817.  
  818.  
  819.  
  820. --------------------------------------------------------------------------
  821.  
  822.  
  823.  
  824. CHAPTER THREE:  INTERPRETING ERROR AND WARNING MESSAGES
  825.  
  826.  
  827.  
  828. The following is a list of PKLITE error messages and warning messages, 
  829. along with a description of each.
  830.  
  831. An error message indicates a condition that makes PKLITE stop completely. 
  832. For example, the error called Data error indicates that the newly-compressed 
  833. file is corrupted and PKLITE cannot continue.
  834.  
  835. A warning message represents a condition that mostly affects only one or 
  836. more (but not all) files being compressed but usually does not terminate 
  837. PKLITE. For example, if you are compressing three files and PKLITE can't 
  838. compress the second file, PKLITE displays a warning message telling you 
  839. that the second file won't be compressed, however, it will continue to 
  840. compress the third file. Some warnings appear for informational purposes 
  841. and do not affect the compression.
  842.  
  843. Some errors and warnings apply only to DOS executables, some apply only 
  844. to Windows executables, and some apply to both.
  845.  
  846.  
  847.  
  848. ERROR MESSAGES FOR DOS ONLY
  849.  
  850. The following error messages apply only to DOS executables:
  851.  
  852. This error:                          Indicates the following:
  853. -------------------------------------------------------------
  854.  
  855. File: <filename>: Packed             The executable compressed using 
  856. file is corrupt                      EXEPACK is corrupt.
  857.  
  858. EXE header has too many              The header section of the file contains  
  859. items                                too much information to be compressed. 
  860.                                      To correct this error, try to increase 
  861.                                      the amount of memory available to PKLITE.
  862.  
  863. No extract error code                You are attempting to expand a file but the 
  864.                                      extract code is corrupted or missing.
  865.  
  866. Data error                           An error has been detected in the com-                         
  867.                                      pressed data. The file is corrupted.
  868.  
  869. Must use extra compres-              When you use the -g option, you must also 
  870. sion when uncompressed               use the -e option, which allows for extra 
  871. area option is used                  compression.
  872.                                      To correct, retype the command and include 
  873.                                      the -e option.
  874.  
  875.  
  876.  
  877. ERROR MESSAGES FOR WINDOWS ONLY
  878.  
  879. The following error messages apply only to Windows executables:
  880.  
  881. This error:                   Indicates the following:
  882. -------------------------------------------------------
  883.  
  884. Original and expanded are     When PKLITE uncompressed the file and 
  885. different                     compared it against the original file, they 
  886.                               were different. They should be the same.
  887.  
  888.  
  889.  
  890. ERROR MESSAGES FOR DOS AND WINDOWS
  891.  
  892. The following errors apply to both DOS and Windows executables:
  893.  
  894. This error:                        Indicates the following:
  895. ------------------------------------------------------------
  896.  
  897. Cannot open input file             PKLITE cannot open the executable you 
  898.                                    have attempted to compress. Either a disk 
  899.                                    error occurred, or the file is locked by 
  900.                                    another application. Make sure it is a true 
  901.                                    executable file. 
  902.  
  903. No files found                     PKLITE could not find any executables, 
  904.                                    therefore, could not compress them.
  905.  
  906. Could not open file                PKLITE could not open the executable file, 
  907.                                    therefore, could not compress it.
  908.  
  909. Could not open output file         PKLITE could not create the output file. 
  910.                                    Either a disk error occurred, or the file is 
  911.                                    locked by another application. If you have 
  912.                                    specified an output file, make sure it is a 
  913.                                    valid filename and location.
  914.  
  915. Write error                        PKLITE created the output file, but could not 
  916.                                    write it to diskette. Either a disk error has 
  917.                                    occurred, or the file is locked by another 
  918.                                    application.
  919.  
  920. Disk full error                    Not enough disk space available on the des-
  921.                                    tination drive for the file being created. 
  922.                                    PKLITE never deletes the original file until it 
  923.                                    is finished writing the compressed file. 
  924.                                    Therefore, there must be enough free disk 
  925.                                    space for the compressed file and the origi-
  926.                                    nal file.
  927.                                    To correct this error, try to free up more disk 
  928.                                    space.
  929.  
  930. Read error                         PKLITE cannot read a specified file. 
  931.                                    To correct this error, check the file to make 
  932.                                    sure it is not corrupt.
  933.  
  934. Create error                       PKLITE could not create the named file. 
  935.                                    To correct this error, check the output 
  936.                                    directory; it might be invalid or full.
  937.  
  938. Memory error                       There is insufficient memory available to 
  939.                                    process the command. 
  940.                                    To correct this error, try to free up more 
  941.                                    memory. PKLITE requires a minimum of 
  942.                                    85K of memory.
  943.  
  944. Cannot compress file into          The file being compressed and the output 
  945. itself                             file are the same. 
  946.                                    To correct this error, make sure to specify 
  947.                                    an output file that is different than the file 
  948.                                    you are compressing. For example:
  949.  
  950.                                       pklite  pat.exe  jim.exe
  951.  
  952. Compressing many files             You are attempting to compress multiple 
  953. into one file error                files into one output file.
  954.                                    To correct this error, retype the command 
  955.                                    correctly.
  956.  
  957. Output wildcards error             The output path cannot contain any wildcard 
  958.                                    characters (for example, * or ?).
  959.                                    To correct this error, retype the command 
  960.                                    correctly.
  961.  
  962.  
  963.  
  964. WARNING MESSAGES FOR DOS ONLY
  965.  
  966. The following warning messages apply only to DOS executables:
  967.  
  968. Note:    The <filename> notation below represents the file for which the error 
  969.       applies.
  970.  
  971. This warning:                      Indicates the following:
  972. ------------------------------------------------------------
  973.  
  974. File: <filename>: is com-          You have used the -p option to not unpack 
  975. pressed with EXEPACK               files compressed with EXEPACK before 
  976.                                    compressing with PKLITE. 
  977. compressing packed file            This message appears only if you have 
  978.                                    selected the -p option and serves as a 
  979.                                    reminder that PKLITE will compress the file 
  980.                                    without unpacking it.
  981.  
  982. File: <filename>: is com-          You have used the -a option to always com-
  983. pressed with EXEPACK               press files that are packed. PKLITE unpacks 
  984.                                    the file before compressing it. 
  985. unpacking before compression       This message appears only if you have 
  986.                                    selected the -a option.
  987.  
  988. File: <filename>: is com-          PKLITE has encountered a packed 
  989. pressed with EXEPACK               executable, but you have not specified the 
  990.                                    -a or -p options that tell PKLITE how to han-
  991. Unpack (Y/N)?                      dle this file.
  992.                                    To continue, type one of the following at the 
  993.                                    Unpack (Y/N)? prompt:
  994.  
  995.                                    Y = Unpack the EXEPACK data, then compress 
  996.                                        with PKLITE.
  997.  
  998.                                    N = Don't unpack the EXEPACK data and 
  999.                                        compress the entire file.
  1000.  
  1001.  
  1002. File: <filename>: loads into       Data in high memory cannot be compressed.
  1003. high memory and cannot             
  1004. be compressed
  1005.  
  1006. File: <filename>: may con-         You used the -n option, which tells 
  1007. tain overlays, file not            PKLITE not to compress files with overlays. 
  1008. compressed                         This message appears only when you use 
  1009.                                    the -n option and serves as a reminder that 
  1010.                                    you use that option.
  1011.  
  1012. File: <filename>: cannot be        You used the -e option to compress this file 
  1013. expanded                           originally. Therefore, you cannot expand the 
  1014.                                    file using the -x option.
  1015.  
  1016. File: <filename>: cannot be        You are using an older version of PKLITE. 
  1017. expanded, incorrect version        Make sure to run the current version of PKLITE
  1018.  
  1019.  
  1020. File: <filename>: Extra            You cannot use the -e option (extra com-
  1021. compression not available          pression) with .SYS files. PKLITE will pro-
  1022. for .SYS files, using normal       ceed with normal compression.
  1023. compression.
  1024.  
  1025. File: <filename>: Extra            You cannot use the -e option (extra com-
  1026. compression not available          pression) with .COM files. PKLITE will pro-
  1027. for .COM files, using nor-         ceed with normal compression.
  1028. mal compression.
  1029.  
  1030. File: <filename>: Check-           PKLITE does not perform checksums on 
  1031. sum option not available           .SYS files. PKLITE will proceed with normal 
  1032. for .SYS files, option             compression.
  1033. ignored for this file.
  1034.  
  1035. File: <filename>: Check-           PKLITE does not perform checksums on 
  1036. sum option not available           .COM files. PKLITE will proceed with normal 
  1037. for .COM files, option             compression.
  1038. ignored for this file
  1039.  
  1040. File: <filename>: Rear-            This message appears when you use the -a 
  1041. ranging relocation data for        option, which allows PKLITE to optimize 
  1042. better compression                 relocations.
  1043.  
  1044.  
  1045. File: <filename>: Unopti-          This message appears when you do not use 
  1046. mal relocation data                the -a option, which allows PKLITE to opti-
  1047. detected, rearrange for            mize relocations.
  1048. better compression 
  1049.                                    To continue, type one of the following at the 
  1050.                                    (y/n)? prompt:
  1051.  
  1052.                                    Y = Rearrange unoptimal relocation data for 
  1053.                                        better compression.
  1054.  
  1055.                                    N = Don't rearrange unoptimal relocation 
  1056.                                        data for better compression.
  1057.  
  1058.  
  1059. File: <filename>: is not           You used the -x option, which expands the 
  1060. compressed                         file. PKLITE does not compress the file with 
  1061.                                    the -x option.
  1062.  
  1063. File: <filename>: could not        The file you specified is too small to 
  1064.                                    compress (less than 400 bytes), or too large
  1065.                                    be compressed
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072. WARNING MESSAGES FOR WINDOWS ONLY
  1073.  
  1074. The following warning messages apply only to Windows executables:
  1075.  
  1076. This warning:                                Indicates the following:
  1077. ----------------------------------------------------------------------
  1078.  
  1079. File: <filename>: Unpack option not          You are using the -p option, 
  1080. available for Windows files, option          which is not available for 
  1081. ignored                                      Windows executables.
  1082.  
  1083. File: <filename>: is a Windows file          Windows files cannot be 
  1084.                                              expanded (uncompressed)
  1085.                                              and cannot be expanded
  1086.  
  1087. File: <filename>: Removing overlays          You are using the -r option, which 
  1088. option not available for Windows files,      is not available for Windows exe-
  1089. option ignored                               cutables.
  1090.  
  1091. File: <filename>: extra compression          You cannot use the -e- option 
  1092. option without PSP signature not             (extra compression without PSP 
  1093. available, using extra compress              signature) with Windows 
  1094.                                              executables. PKLITE will proceed 
  1095.                                              with extra compression.
  1096.  
  1097. File: <filename>: original and               The segments for the original and 
  1098. expanded are different                       expanded executable files are 
  1099.                                              different.
  1100.                                              After compressing the executable 
  1101.                                              segments, PKLITE verifies that 
  1102.                                              the segments were compressed 
  1103.                                              correctly.
  1104.  
  1105. File: <filename>: too small to com-          The file you want to compress is 
  1106. press                                        too small.
  1107.  
  1108. File: <filename>: is not a valid Win-        The file is not a valid Windows 
  1109. dows file                                    executable file. 
  1110.  
  1111.  
  1112. File: <filename>: does not have a            The old-style header in the exe-
  1113. valid Windows EXE header                     cutable file being compressed is 
  1114.                                              not valid. The header might be 
  1115.                                              corrupted.
  1116.  
  1117. File: <filename>: has a bad NEW              The new-style header in the exe-
  1118. EXE file header                              cutable file is not valid. The 
  1119.                                              header might be corrupted.
  1120.  
  1121. File: <filename>: does not contain           The executable file you are trying 
  1122. segments                                     to compress does not contain any 
  1123.                                              segments.
  1124.  
  1125. File: <filename>: contains too many          The executable file you are trying 
  1126. segments                                     to compress contains too many 
  1127.                                              segments.
  1128.  
  1129. File: <filename>: has lost an imported       PKLITE could not find an 
  1130. file name                                    imported filename.
  1131.  
  1132.  
  1133. File: <filename>: does not use               The executable file being com-
  1134. KERNEL                                       pressed does not use the 
  1135.                                              Windows kernel.
  1136.  
  1137. File: <filename>: new segment could          A segment of the executable file 
  1138. not be aligned                               could not be aligned properly by 
  1139.                                              PKLITE.
  1140.  
  1141. File: <filename>: bad or unknown             PKLITE cannot find or does not 
  1142. STUB file being given                        recognize the stub or header file 
  1143.                                              that you specified on the com-
  1144.                                              mand line. 
  1145.  
  1146. File: <filename>: STUB file is not an        The stub or header file you speci-
  1147. EXE file                                     fied is not part of an EXE file. The 
  1148.                                              file you specify on the command 
  1149.                                              line must be an executable file.
  1150.  
  1151. File: <filename>: bad format for win-        The format for the stub or header 
  1152. dows STUB file                               file information is invalid.
  1153.  
  1154.  
  1155. File: <filename>: too many reloca-           One of the segments of the exe-
  1156. tions for only one segment                   cutable file contains too many 
  1157.                                              relocations.
  1158.  
  1159. File: <filename>: resources could not        Some of the resources in the exe-
  1160. be aligned                                   cutable file could not be aligned.
  1161.  
  1162.  
  1163.  
  1164.  
  1165. WARNING MESSAGES FOR DOS AND WINDOWS
  1166.  
  1167. The following warning messages apply only to DOS executables:
  1168.  
  1169. This warning:                                Indicates the following:
  1170. ----------------------------------------------------------------------
  1171.  
  1172. File grew in size and could not be           The file being compressed got 
  1173. compressed.                                  bigger and was not compressed.
  1174.                                              To compress files that get 
  1175.                                              bigger during compression, use 
  1176.                                              the -f option.
  1177.  
  1178. File: <filename>: is a restricted file       Some executables cannot be 
  1179. name that cannot be compressed               compressed by PKLITE. When-
  1180.                                              ever PKLITE encounters one of 
  1181.                                              these files, it will only display this 
  1182.                                              warning message.
  1183.  
  1184.  
  1185. File: <filename>: is already compressed      The executable file you want to 
  1186.                                              compress has already been compressed.
  1187.  
  1188. File does not have a valid extension:        PKLITE does not recognize the 
  1189. <filename>                                   extension on this file and cannot 
  1190.                                              compress the file.
  1191.  
  1192.  
  1193. File: <filename> is read-only,               Read-only files cannot be com-
  1194. skipping, must specify an output file        pressed into the executable. You 
  1195.                                              must direct it to an output file. 
  1196.                                              To do so, follow the name of the 
  1197.                                              executable file in your command 
  1198.                                              with the name of an output file.
  1199.  
  1200. File: <filename> is a Win32 program          PKLITE cannot compress Win32 files.
  1201. and cannot be compressed. 
  1202.  
  1203.  
  1204.  
  1205.